﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>格特制衣面辅料管理系统</title>
<style type="text/css">
#loading {
	position: absolute;
	left: 40%;
	top: 40%;
	padding: 2px;
	z-index: 20001;
	height: auto;
}

#loading a {
	color: #225588;
}

#loading .loading-indicator {
	background: white;
	color: #444;
	font: bold 13px tahoma, arial, helvetica;
	padding: 10px;
	margin: 0;
	height: auto;
}

#loading-msg {
	font: normal 10px arial, tahoma, sans-serif;
}
</style>
<link rel="stylesheet" type="text/css" href="css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="css/ext-patch.css" />
<link rel="stylesheet" type="text/css" href="css/css.css" />
<link rel="stylesheet" type="text/css" href="css/fileuploadfield.css" />
<script language="JavaScript">
	javascript: window.history.forward(1);
</script>

<script type="text/javascript">
	      var currentRole = '系统管理员';
	      var userName = 'admin';
	      var userId='1';
	      var userSecurityGrade='6';
	      var nav = '';
	      var path = '';
	      if(currentRole == '系统管理员')
	      {
	          nav = 'admin';
	          path = '/admin';
	      }
	      else if(currentRole == '接收人')
	      {
	          nav = 'receiver';
	          path = '';
	      }
	      else if(currentRole == '翻译人')
	      {
	    	  nav = 'translater';
	    	  path = '';
	      }
	      else if(currentRole == '校审人')
	      {
	    	  nav = 'checker';
	    	  path = '';
	      }
	      else if(currentRole == '校对人')
	      {
	    	  nav = 'reviser';
	    	  path = '';
	      }
	      else if(currentRole == '审核人')
	      {
	    	  nav = 'reviewer';
	    	  path = '';
	      }
	      else if(currentRole == '联系人')
	      {
	    	  nav = 'contributer';
	    	  path = '';
	      }
	      else if(currentRole == '分发人')
	      {
	    	  nav = 'distributer';
	    	  path = '';
	      }
	      else if(currentRole == '缺勤管理员')
	      {
	    	  nav = 'attendanceadmin';
	    	  path = '';
	      }
</script>
</head>
<body>
	<div id="loading">
		<div class="loading-indicator">
			<img src="images/loading32.gif" width="31" height="31"
				style="margin-right: 8px; float: left; vertical-align: top;" />
			格特制衣面辅料管理系统 <br /> <span id="loading-msg">加载样式和图片...</span>
		</div>
	</div>
	<div id="bd">
		<script type="text/javascript">
			document.getElementById('loading-msg').innerHTML = '加载核心...';
		</script>
		<script type="text/javascript" src="js/ext/ext-base.js"></script>
		<script type="text/javascript">
			document.getElementById('loading-msg').innerHTML = '加载UI组件...';
		</script>
		<script type="text/javascript" src="js/ext/ext-all-debug.js"></script>
		<script type="text/javascript">
			document.getElementById('loading-msg').innerHTML = '模块初始化...';
		</script>
		<script type="text/javascript" src="js/ext/ext-lang-zh_CN.js"></script>
		<script type="text/javascript" src="js/ext/FileUploadField.js"></script>
		<script type="text/javascript" src="js/ext/ext-basex.js"></script>
		<script type="text/javascript" src="js/main.js"></script>
		<script type="text/javascript">
			//session处理
			//                 Ext.util.Observable.observeClass(Ext.data.Connection);
			//                 Ext.data.Connection.on('requestcomplete', function(conn, resp, options){
			//                 	if (resp && resp.getResponseHeader && resp.getResponseHeader('timeout')) {
			//            			 Ext.Msg.alert('提示', '会话超时，请重新登录!', function(){  
			//            				   window.location.reload();
			//            		  });  
			//            	     }else if (resp && resp.getResponseHeader && resp.getResponseHeader('inactive')) {
			//            			 Ext.Msg.alert('提示', '该用户已被禁用，请与系统管理员联系!', function(){  
			//          				   window.location= "index.action";
			//          		  });  
			//          	     }
			//                 });
			//回退键处理
			new Ext.KeyMap(document, [ {
				key : Ext.EventObject.BACKSPACE,
				fn : function(key, e) {
					var t = e.target.tagName;
					if (t !== "INPUT" && t !== "TEXTAREA") {
						e.stopEvent();
					}
				}
			} ]);
		</script>
	</div>
	<div id="header" class="header">
		<a href="#" class="header_logo"></a>
		<p class="header_welcome">
			欢迎您：<span>admin</span><span id="Clock"></span>
		</p>
		<ul class="header_operate">
			<li class="exit"><a href="#">安全退出</a></li>
			<li class="help"><a href="javascript:void(0)">帮助中心</a></li>
			<li class="password"><a href='javascript:void(0)'>修改密码</a></li>
			<li class="info"><a href='javascript:void(0)'>个人信息</a></li>
		</ul>
	</div>
	<div id="south" class="footer">
		技术支持：<a href="#" target="black" style="color: white;">XX软件有限公司 </a>
	</div>
</body>
</html>


